SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 49023: Using _Cn_ variable names in the input data set to PROC REPORT might generate errors

DetailsAboutRate It

Variable names in the form of _Cn_ are reserved in PROC REPORT.

In SAS® releases prior to SAS® 9.4, errors like the following might occur if the input data set to PROC REPORT contains variables that are named in the _Cn_ form:

ERROR:  Read Access Violation In Task [ REPORT ]
Exception occurred at (0817F02E)
Task Traceback
Address   Frame     (DBGHELP API Version 4.0 rev 5)
...

Beginning with SAS 9.4, the "Read Access Violation" error no longer occurs. The following error might be generated instead:

ERROR: The name _c2_ is reserved for use in COMPUTE blocks. Try using an alias on this column.

To circumvent the problem, do one of the following:

  • Rename the variables in the input data set.
  • Assign an alias for each variable in the COLUMN statement. For example:
    column _c2_=x2 _c3_=x3 _c4_=x4; 
    


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9 TS M09.4 TS1M1
Microsoft® Windows® for 64-Bit Itanium-based Systems9 TS M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9 TS M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9 TS M0
Microsoft Windows 2000 Advanced Server9 TS M0
Microsoft Windows 2000 Datacenter Server9 TS M0
Microsoft Windows 2000 Server9 TS M0
Microsoft Windows 2000 Professional9 TS M0
Microsoft Windows NT Workstation9 TS M0
Microsoft Windows Server 2003 Datacenter Edition9 TS M0
Microsoft Windows Server 2003 Enterprise Edition9 TS M0
Microsoft Windows Server 2003 Standard Edition9 TS M0
Microsoft Windows XP Professional9 TS M0
64-bit Enabled AIX9 TS M09.4 TS1M1
64-bit Enabled HP-UX9 TS M09.4 TS1M1
64-bit Enabled Solaris9 TS M09.4 TS1M1
HP-UX IPF9 TS M09.4 TS1M1
Linux9 TS M09.4 TS1M1
OpenVMS Alpha9 TS M09.4 TS1M1
Tru64 UNIX9 TS M09.4 TS1M1
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.